| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import feathers from 'feathers' |
||
| 30 | getClient: (awaiting = true) => { |
||
| 31 | const client = feathersClient().configure(localClient(url)) |
||
| 32 | if (awaiting) { |
||
| 33 | return new Promise((resolve, reject) => { |
||
| 34 | client.io.on('connect', () => { |
||
| 35 | resolve(client) |
||
| 36 | }) |
||
| 37 | client.io.on('close', error => { |
||
| 38 | reject(error) |
||
| 39 | }) |
||
| 40 | }) |
||
| 41 | } |
||
| 42 | |||
| 43 | return client |
||
| 44 | } |
||
| 45 | } |
||
| 47 |